Component({
  data: {
    labelSelectId: 1, // 菜单选项被选中ID,
    panelContent: "选项一", // 面板展示内容
    optionList: [
      { id: 1, name: '选项一' },
      { id: 2, name: '选项二' },
      { id: 3, name: '选项三' },
      { id: 4, name: '选项四' },
      { id: 5, name: '选项五' },
      { id: 6, name: '选项六' },
      { id: 7, name: '选项七' }
    ]
  },
  methods: {
    tabsLabelHandle(e) {
      let { id, name } = e.currentTarget.dataset.item;
      this.setData({
        labelSelectId: id,
        panelContent: name
      });
    }
  }
});